package meshnet

type ServerInterface interface {
	NetworkInterface
	BroadCast(tag string, data []byte)
}

type ClientInterface interface {
	NetworkInterface
	List() ([]byte, error)
}

type NetworkInterface interface {
	Run(stopCh <-chan struct{})
	Write(tag string, data []byte) ([]byte, error)
	AddFn(tag string, fn func([]byte) []byte)
}
